//
//  WSOrderViewController.m
//  FD
//
//  Created by Yasin on 2018/10/15.
//  Copyright © 2018年 ZhiYuan Network. All rights reserved.
//

#import "WSOrderViewController.h"
#import "WSOrderPageViewController.h"
@interface WSOrderViewController ()

@end

@implementation WSOrderViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    self.view.backgroundColor = [UIColor whiteColor];

    
   WSOrderPageViewController *pageVC = [WSOrderPageViewController wsorderTopPageVC];
    //添加子视图控制器，添加子视图控制器的view
    [self addChildViewController:pageVC];
    
    CGRect tempFrame = self.view.bounds;
    tempFrame.origin.y = FD_NavH + 35; //导航条h+分段标题文字view的高度
    tempFrame.size.height = self.view.bounds.size.height - (FD_NavH - 35);
    pageVC.view.frame = tempFrame;
    [self.view addSubview:pageVC.view];
    
    //    pageVC.view.frame = self.view.bounds;
    //    [self.view addSubview:pageVC.view];
}

- (void)viewWillAppear:(BOOL)animated {
    [super viewWillAppear:animated];
    
    FDLog(@"===%@",NSStringFromCGRect(self.view.frame));
}

@end
